package com.malong.coolweather.utils;

import android.util.Log;

import com.malong.coolweather.Config;

import okhttp3.OkHttpClient;
import okhttp3.Request;

public class HttpUtil {

    public static void sendOkHttpRequest(String endpoint, okhttp3.Callback callback) {
        Log.i(Config.TAG, "request " + endpoint);
        OkHttpClient client = new OkHttpClient();
        Request request = new Request.Builder().url(endpoint).build();
        client.newCall(request).enqueue(callback);
    }

}
